<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<div class="nybanner">
<img src="<?php echo IMG_PATH;?>nybanner.jpg">
</div>
<div class="xinwen-box">
    <div class="common-width">
        <div class="xinwen wow fadeInUp">
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=4d34109c64920210f9d96d140f5b1d34&sql=select+p.thumb%2Cp.description%2Cp.title%2Cpd.content+from+picture+as+p%2C+picture_data+as+pd+WHERE+pd.id%3Dp.id+and+p.id%3D%24id\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select p.thumb,p.description,p.title,pd.content from picture as p, picture_data as pd WHERE pd.id=p.id and p.id=$id LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
            <div class="xinwen-time">
                <h1><?php echo $data['0']['title'];?></h1>
            </div>
            <div class="xinwen-nrxq">
                <?php echo $data['0']['content'];?>
            </div>
            <div id="ar_fot">
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=7010271e6f8e1f07373a351347793354&sql=select+%2A+from+picture+where+catid%3D%24catid+and+id%3C%24id+order+by+id+desc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select * from picture where catid=$catid and id<$id order by id desc LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <?php if(empty($data[0])) { ?>
                <h1 class="fl"><span>上一篇：</span><a href="javascript:;">没有了</a></h1>
                <?php } else { ?>
                <h1 class="fl"><span>上一篇：</span><a href="<?php echo $data['0']['url'];?>"><?php echo $data['0']['title'];?></a></h1>
                <?php } ?>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=b601a6c3cacab505be475b7bd1d5fa1b&sql=select+%2A+from+picture+where+catid%3D%24catid+and+id%3E%24id+order+by+id+asc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select * from picture where catid=$catid and id>$id order by id asc LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <?php if(empty($data[0])) { ?>
                <h1 class="fr"><span>下一篇：</span><a href="javascript:;">没有了</a></h1>
                <?php } else { ?>
                <h1 class="fr"><span>下一篇：</span><a href="<?php echo $data['0']['url'];?>"><?php echo $data['0']['title'];?></a></h1>
                <?php } ?>
                <div class="clear"></div>
                <div class="bnt_box"><a href="?m=content&c=index&a=lists&catid=15" class="bnt_back">返回列表</a></div>
            </div>
        </div>
    </div>
</div>

<?php include template("content","footer"); ?>